<div class="col-sm-12 mt20" ng-keyup="myKeyup($event)">
<div class="panel panel-default">
<div class="panel-body">
<div class="col-sm-12">
    <div class="row ">
        <div class="col-sm-2"> 
            <ui-select ng-model="searchform.selected" theme="bootstrap" ng-disabled="selectgood.flag == '0'" ng-change="change(searchform.selected)">
                <ui-select-match placeholder="请选择一个渠道">{{$select.selected.channel}}</ui-select-match>
                <ui-select-choices repeat="item in channelarr | filter: $select.search">
                  <span ng-bind-html="item.channel | highlight: $select.search"></span>
                  <!--<small ng-bind-html="item.code | highlight: $select.search"></small>-->
                </ui-select-choices>
            </ui-select>
        </div>
        <div class="col-sm-2">
            <div class="input-group" datetimepicker ng-model="vm.date" options="vm.options">
                <input class="form-control" />
                <span class="input-group-addon">
                    <span class="glyphicon glyphicon-calendar"></span>
                </span>
            </div>
        </div>
        <div class="col-sm-2 col-sm-offset-6">
            <button class="btn btn-block btn-info" ng-click="getlist()">搜索</button> 
        </div>

    </div>

</div>
</div>
</div>
<!-- searchArea -->
<div class="panel panel-default">
    <div class="panel-body">
        <table class="table table-condensed table-hover table-bordered">
            <thead>
            <tr>
                <th class="col-md-1 text-center">昵称</th>
                <th class="col-md-1 text-center">头像</th>
                <th class="col-md-1 text-center">手机号</th>
                <th class="col-md-1 text-center">渠道</th>
                <th class="col-md-1 text-center">当前价格</th>
                <th class="col-md-1 text-center">状态</th>
                <th class="col-md-1 text-center">支付状态</th>
                <th class="col-md-2 text-center">订单编号</th>
                <th class="col-md-1 text-center">发起时间</th>
                <th class="col-md-1 text-center">结束时间</th>
                <th class="col-md-1 text-center">操作</th>                       
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="obj in objs">
                <td class="text-center">{{obj.nickname}}</td>
                <td class="text-center">
                    <img ng-src="{{obj.headimg}}" class="img-responsive" style="border-radius:100px;">
                </td>  
                <td class="text-center">{{obj.mobile}}</td>
                <td class="text-center">{{obj.channel}}</td>
                <td class="text-center">{{obj.actual_price / 100}}</td>
                <td class="text-center">
                    <p class="" ng-show="obj.state == '0'">进行中</p>
                    <p class="" ng-show="obj.state == '1'">已结束</p>
                </td>
                <td class="text-center">
                    <p class="" ng-show="obj.pay_status == '0'">未支付</p>
                    <p class="" ng-show="obj.pay_status == '1'">已支付</p>
                </td>
                <td class="text-center">{{obj.order_code}}</td>
                <td class="text-center">{{obj.create_time}}</td>
                <td class="text-center">{{obj.end_time}}</td>  
                <td class="text-center">
                    <a ng-click="seebargaininfo(obj.active_id)" class="btn btn-info btn-xs">砍价明细</a>
                </td>                       
                                    
            </tr>
            </tbody>
         </table>
        <div class="text-right">
             <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="getlist()" previous-text="上一页" next-text="下一页"
                first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
                class="m-t-none m-b">
            </pagination>
        </div>
    </div>  
</div>
</div>
<!--<div class="col-sm-12">
<div class="panel panel-default">
    <div class="panel-body">
        <div class="form-group form-inline">
            <div class="col-sm-12">
                  
                  <input type="text" class="form-control" ng-model="info.userName" placeholder="用户姓名">
                  &nbsp;&nbsp;&nbsp;&nbsp;
                  <input type="text" class="form-control" ng-model="info.mobile" placeholder="联系电话">
                  &nbsp;&nbsp;
                  <div class="form-group pull-right">
                      <button type="button" class="btn btn-primary" ng-click="search()">立即查询</button>
                      &nbsp;&nbsp;&nbsp;&nbsp;
                  </div>


            </div>
        </div>
    </div>
</div>

<div class="col-md-12 panel panel-default table-responsive">
    <table class="table table-bordered">
    <thead>
      <tr>
        <th class="col-md-2 text-center">昵称</th>
        <th class="col-md-1 text-center">手机号</th>
        <th class="col-md-1 text-center">当前价格</th>
        <th class="col-md-1 text-center">状态</th>
        <th class="col-md-1 text-center">支付状态</th>
        <th class="col-md-2 text-center">订单编号</th>
        <th class="col-md-1 text-center">发起时间</th>
        <th class="col-md-1 text-center">结束时间</th>
        <th class="col-md-2 text-center">操作</th>                       
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="obj in objs">
        <td class="text-center">{{obj.nickname}}</td>
        <td class="text-center">{{obj.mobile}}</td>
        <td class="text-center">{{obj.actual_price}}</td>
        <td class="text-center">
            <p class="" ng-show="obj.state == '0'">进行中</p>
            <p class="" ng-show="obj.state == '1'">已结束</p>
        </td>
        <td class="text-center">
            <p class="" ng-show="obj.pay_status == '0'">未支付</p>
            <p class="" ng-show="obj.pay_status == '1'">已支付</p>
        </td>
        <td class="text-center">{{obj.order_code}}</td>
        <td class="text-center">{{obj.create_time}}</td>
        <td class="text-center">{{obj.end_time}}</td>  
        <td class="text-center">
            <a ng-click="seebargaininfo()" class="btn btn-info btn-xs">砍价明细</a>
        </td>                       
                             
      </tr>
    </tbody>
    </table>
</div>

<div class="text-right" style="background-color: white">
  <pagination 
      total-items="totalItems" 
      ng-model="currentPage" 
      ng-change="getlist()"
      previous-text="上一页"
      next-text="下一页"
      first-text="首页"
      last-text="尾页"
      max-size="5"
      boundary-links="true"
      rotate="false"

      items-per-page="itemsPerPage"
      class="m-t-none m-b"></pagination>
  </div>
</div>-->